package resp

import "time"

type Design struct {
	UserId            string    `json:"userId" gorm:"column:user_id"`
	BookName          string    `json:"bookName" gorm:"column:book_name"`
	ChapterId         string    `json:"chapterId" gorm:"column:chapter_id;default:0"`
	DId               string    `json:"dId" gorm:"column:d_id"`
	DesignAttribution int64     `json:"designAttribution" gorm:"column:design_attribution"`
	DType             int64     `json:"dType" gorm:"column:d_type;default:1"`
	DesignTitle       string    `json:"designTitle" gorm:"column:design_title;type:varchar(100)"`
	DesignContent     string    `json:"designContent" gorm:"column:design_content;type:text"`
	IsDeleted         bool      `json:"isDeleted" gorm:"column:is_deleted"`
	CreateAt          time.Time `json:"createAt" gorm:"column:create_at;default:null"`
}

type DesignTitleAndType struct {
	UserId      string `json:"userId"`
	BookName    string `json:"bookName"`
	ChapterId   string `json:"chapterId"`
	DId         string `json:"dId"`
	DType       int64  `json:"dType"`
	DesignTitle string `json:"designTitle"`
}
